package com.example.fence.modelTest;

import com.example.fence.enums.AlarmMode;

import java.util.HashSet;
import java.util.Set;

import static com.example.fence.util.FenceStoreUtil.deviceAlarmMode;

public class FenceUtilTest {
    public static void main(String[] args) {
        Set<Integer> alarmModes = new HashSet<>();
        alarmModes.add(0);
        alarmModes.add(1);
        for(Integer num : alarmModes) {
            AlarmMode alarmMode=AlarmMode.values()[num];
            System.out.println(alarmMode);
            switch (alarmMode){
                case EMAIL:
                    String lat="123";
                    String lon="123";
                    System.out.println("1");
                    break;
                case LOCK:
                    //Task.PostC2("1/1/1");
                    System.out.println("2");
                    break;
                default:
                    System.out.println("deviceAlarmMode 不正确 "+alarmMode);
                    break;
            }
        }
    }
}
